package cn.edu.hit.education.action;

import org.eclipse.jface.action.Action;
import org.eclipse.ui.plugin.AbstractUIPlugin;

import cn.edu.hit.education.service.ICourseService;
import cn.edu.hit.education.service.IScheduleService;
import educationschedule.Activator;
import educationschedule.Application;

public class StatisticalScheduleAction extends Action {
	IScheduleService scheduleService = (IScheduleService)Application.applicationContext.getBean("scheduleServiceImpl");
	ICourseService courseService = (ICourseService)Application.applicationContext.getBean("courseServiceImpl");
	
	public StatisticalScheduleAction(){
		this.setImageDescriptor(AbstractUIPlugin.imageDescriptorFromPlugin(Activator.PLUGIN_ID, "icons/toolbar/statistics_32px.png"));
		this.setToolTipText("汇总方案");
		this.setText("汇总方案");
	}
	
	@Override
	public void run() {
		// TODO Auto-generated method stub
		scheduleService.statisticsSchedule(1,1);
		super.run();
	}

	

}
